


// 设置token配置
const setTokenOptions = {
    jwtSecretKey: '1234567890',
    expiresIn: 60*60 * 1, // 一个小时
}

const PAGE_SIZE = 10;

// 配置cors跨域参数
const corsOptions = {
    origin: ['http://localhost:3000'],
    credentials: true,
    methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
    allowedHeaders: ['Content-type', 'Authorization'],
}


module.exports = {
    setTokenOptions,
    corsOptions,
    port:3005,
    PAGE_SIZE,
}